# -*- encoding:utf-8 -*-
from collections import Counter
def firstUniqChar(s):
	hashS = Counter(s)
	l = len(s)
	for i in xrange(l):
		if hashS[s[i]] ==  1:
			return i
	return -1

s = "CC"
print firstUniqChar(s)
